/*
 * 云代码对外接口
 */
var AV = require('leanengine')

var order = require('./cloud/common/order');
var chat = require('./cloud/common/chat');
var other= require('./cloud/common/other');
var task = require('./cloud/common/task');
var test = require('./cloud/common/test');



/*******************订单处理相关接口**********************/
//AV.Cloud.define('applyOrder', order.applyOrder);
/*******************环信函数 *********************/
AV.Cloud.define('sendFriendApplyMsg', chat.sendFriendApplyMsg);
AV.Cloud.define('sendFriendApplyMsgShow', chat.sendFriendApplyMsgShow);
AV.Cloud.define('sendSweetApplyCMDMsg', chat.sendSweetApplyCMDMsg);
AV.Cloud.define('sendSweetApplyMsg', chat.sendSweetApplyMsg);
AV.Cloud.define('getHXToken', chat.getHXToken);
AV.Cloud.define('register', chat.register);
AV.Cloud.define('sendChatApplyMsg', chat.sendChatApplyMsg);
AV.Cloud.define('sendChatAgreeMsg', chat.sendChatAgreeMsg);
AV.Cloud.define('transferAccount', chat.transferAccount);
AV.Cloud.define('newTransferAccount', chat.newTransferAccount);
AV.Cloud.define('sendNewLikerMsg', chat.sendNewLikerMsg);
AV.Cloud.define('sendSysMsg', chat.sendSysMsg);
AV.Cloud.define('sendUpdateMsg', chat.sendUpdateMsg);
AV.Cloud.define('sendRecommendMsg', chat.sendRecommendMsg);
AV.Cloud.define('sendCallMsg', chat.sendCallMsg);
AV.Cloud.define('sendSysSms', chat.sendSysSms);
AV.Cloud.define('checkOnlineStatus', chat.checkOnlineStatus);
AV.Cloud.define('BalanceAccount', chat.BalanceAccount);

/******************其他功能函数 *********************/
AV.Cloud.define('likeUser', other.likeUser);
AV.Cloud.define('reportUser', other.reportUser);
AV.Cloud.define('complaintUser', other.complaintUser);
AV.Cloud.define('disLikeUser', other.disLikeUser);
//AV.Cloud.define('createAdmin', admin.createAdmin);
AV.Cloud.define('creatSubAvatar',other.creatSubAvatar);
AV.Cloud.define('getNetTime',other.getNetTime);
AV.Cloud.define('isHasTestOrder',other.isHasTestOrder);

/******************task *********************/
AV.Cloud.define('brokeSweet',task.brokeSweet);

/******************test *********************/
AV.Cloud.define('sendNoticeSms',test.sendNoticeSms);

module.exports = AV.Cloud;